/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controladores;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.event.ActionListener;

/**
 *
 * @author usuario
 */
@ManagedBean(name = "controlnavegacion")
@RequestScoped
public class ControlNavegacion {

    private static String url1 = "/templates/login.xhtml";
    private static String url2 = "/templates/mblog.xhtml";
    private static String url3 = "/templates/fondoindex.xhtml";

    public ControlNavegacion() {
    }

    public void cambio(ActionListener ev) {

        url3 = url2;

    }
    public static void registros(){
    url3="/templates/Regsitros.xhtml";
    }

    public static void loginAdministrador() {
        url1 = "/templates/usuario.xhtml";
        url2 = "/templates/MenuAdmin.xhtml";
        url3 = "/templates/Regsitros.xhtml";
    }

    public static void loginAuxiliar() {
        url1 = "/templates/usuario.xhtml";
        url2 = "/templates/menu.xhtml";
        url3 = "/templates/muestras.xhtml";
    }

    public static void cerrarSession() {
        url1 = "/templates/login.xhtml";
        url2 = "/templates/mblog.xhtml";
        url3 = "/templates/fondoindex.xhtml";
    }

    public static void recargarmenu() {
        url3 = "/templates/muestras.xhtml";
    }

    public String getUrl1() {
        return url1;
    }

    public void setUrl1(String url1) {
        this.url1 = url1;
    }

    public String getUrl2() {
        return url2;
    }

    public void setUrl2(String url2) {
        this.url2 = url2;
    }

    public String getUrl3() {
        return url3;
    }

    public void setUrl3(String url3) {
        this.url3 = url3;
    }
}
